From ae7167d74339fb814cf6dc3d64aa9e541458f81c Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Tue, 27 Sep 2005 15:11:07 +0100 Subject: [PATCH] This patch adds "wbinvd" instruction emulation for vm86 mode. This is needed when we bring up AP of SMP VMX guest. Signed-off-by: Xin Li --- tools/firmware/vmxassist/vm86.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/firmware/vmxassist/vm86.c b/tools/firmware/vmxassist/vm86.c index 27b0bf6340..750e58a14a 100644 --- a/tools/firmware/vmxassist/vm86.c +++ b/tools/firmware/vmxassist/vm86.c @@ -752,6 +752,9 @@ opcode(struct regs *regs) goto invalid; } break; + case 0x09: /* wbinvd */ + asm volatile ( "wbinvd" ); + return OPC_EMULATED; case 0x20: /* mov Rd, Cd (1h) */ case 0x22: if (!movcr(regs, prefix, opc)) -- 2.30.2